package com.example.a22310.myapplication.Fragment;


import android.content.Context;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import com.example.a22310.myapplication.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class PersonalFragment extends Fragment {



    private  TextView tvinfo;
    private  View view=null;
    private Context context;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        context = getActivity();
        view = inflater.inflate(R.layout.fragment_personal,container,false);
        tvinfo = (TextView)view.findViewById(R.id.textView10);
        tvinfo.setText("我的");
        Toast.makeText(context,"加载fragment我的",Toast.LENGTH_SHORT).show();
        return view;
    }
}
